package com.tomecode.tools.maven.settings.model;

/**
 * Repository contains the information needed for establishing connections with
 * remote repoistory
 * 
 * @author Tomas Frastia
 * 
 * @see http://www.tomecode.com or
 *      http://code.google.com/p/maven-settings-editor/
 * 
 */
public final class Repository extends AbstractRepository {

	public Repository() {
		super();
	}

	/**
	 * Copy exits {@link Repository} to new {@link Repository}
	 * 
	 * @param existsRepository
	 */
	public Repository(Repository existsRepository) {
		id = existsRepository.getId();
		layout = existsRepository.getLayout();
		name = existsRepository.getName();
		url = existsRepository.getUrl();
		releases = new Release(existsRepository.getReleases());
		snapshots = new Snapshot(existsRepository.getSnapshots());
	}

}
